import APIClient from "../network/index"
// 专题状态请求
const listSlideModule = {
    state: {
        listSlideItems:[]
    },
    mutations: {
        getListSlide(state, items) {
            state.listSlideItems = items;
        }
    },
    actions: {
        getListSlide(context) {
            APIClient.getSlide()
                .then(res => {
                    //检测
                    // console.log(res.data.data);
                    //赋值
                    context.commit("getListSlide", res.data.data)
                })
                .catch(error => {
                    console.log(error);
                });
        }
    },
    modules: {

    }
}

export default listSlideModule